import os


def get_all_files(folder_path):
    files = []
    for file_name in os.listdir(folder_path):
        file_path = os.path.join(folder_path, file_name)
        if os.path.isfile(file_path):
            file_name=file_name.split('.')[0]
            files.append(file_name)
    return files

if __name__ == '__main__':
    folder_path="C:/Users/Administrator/Desktop/fupan/zhangtingbanshouban/housitianshuju"
    files=get_all_files(folder_path)
    print(files)